package Exceptions;

//This Exception is thrown when a VALID TalkTo Command is entered. 
//As TalkTo is an exception to the usual commands as it gives a special message (person to talk to)

//The conversation class requires person name, area code and conversation number
//for identification. The first two parameters need to be provided by this class

@SuppressWarnings("serial")
public class TalkToPerson extends Exception{
	
	private String conversationCode;
	public TalkToPerson(String code){
		super(code);
		conversationCode=code;
	}
	
	
	public void setAreaCode(String area){
		conversationCode+=area;
	}
	
	public String getConversationCode(){
		return conversationCode;
	}
	
}
